package business

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/api/business"
	"ruoyi-go/utils/jwt"
)

func InitC5OrderInfo(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
			auth.GET("/orderInfo/list", api.GetPageLimitC5OrderInfo)
			// 添加
			auth.POST("/orderInfo", api.CreateC5OrderInfo)
			// 修改
			auth.PUT("/orderInfo", api.UpdateC5OrderInfo)
			// 删除
			auth.DELETE("/orderInfo/:ids", api.DeleteC5OrderInfoByIds)
			// 获取详情
			auth.GET("/orderInfo/:id", api.GetC5OrderInfo)
		}
	}
} 